<template>
  <f7-page>
    <f7-navbar title="安全中心" back-link="返回"></f7-navbar>
    <f7-list class="margin-t30">
      <f7-list-item title="修改登录密码" link="/update-password/?type=1"></f7-list-item>
      <f7-list-item title="修改交易密码" link="/update-password/?type=2"></f7-list-item>
      <f7-list-item title="绑定邮箱" link @click="toBindEmail"></f7-list-item>
    </f7-list>
  </f7-page>
</template>

<script>
  export default {
    name: "security-center",
    methods: {
      toBindEmail() {
        if(!this.$store.getters.userInfo.user.email) {
          this.$f7router.navigate('/bind-email/');
        } else {
          this.$toast('已经绑定过邮箱');
        }
      }
    }
  }
</script>

<style scoped>

</style>